package com.train.batch.service;

import com.train.batch.resp.JobPageResp;
import com.train.batch.dto.AddJobDTO;
import com.train.batch.dto.JobPageDTO;
import com.train.common.resp.PageResp;

public interface BatchService {

    void addJob(AddJobDTO addJobDTO);

    void deleteJob(String jobName, String groupName);

    void pauseJob(String jobName, String groupName);

    void resumeJob(String jobName, String groupName);

    void runJob(String jobName, String groupName);

    void updateJob(String jobName, String groupName, String cronExpress);

    PageResp<JobPageResp> pageList(JobPageDTO jobPageDTO);
}
